package online.misscl.hello.service;

import online.misscl.hello.bean.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * project name: IntelliJ IDEA
 * Date: 2022/9/26 22:34
 *
 * @PackageName: online.misscl.hello.service
 * @ClassName: HelloService
 * @Author: Theo
 * @Version:
 * @Description: 默认不要放在容器中
 */


public class HelloService {

    @Autowired
    HelloProperties helloProperties;

    public String sayHello(String username){
        return helloProperties.getPrefix() + ": " + username + " :" + helloProperties.getSuffix();
    }

}
